<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
<%@page
	import="com.bkav.portal.portlet.product.service.ProductLocalServiceUtil"%>
<%@page import="com.bkav.portal.portlet.product.model.Product"%>
<%@page
	import="com.bkav.portal.portlet.product.service.ProductCategoryLocalServiceUtil"%>
<%@page import="com.bkav.portal.portlet.product.model.ProductCategory"%>
<%@page import="java.util.List"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="aui"%>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui"%>
<%@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"%>

<%@include file="/html/product/init.jsp"%>
<%
	List<ProductCategory> productCategoryList = ProductCategoryLocalServiceUtil
			.findAll();
%>
<liferay-portlet:renderURL var="productHomePageURL">
	<liferay-portlet:param name="jspPage" value="/html/product/view.jsp" />
</liferay-portlet:renderURL>

<aui:form method="post" action="<%=productHomePageURL%>">
	<aui:select name="categoryId" label="">
	    <aui:option value="">Chọn chuyên mục</aui:option>
		<%
			for (ProductCategory productCategoryItem : productCategoryList) {
		%>
		<aui:option value="<%=productCategoryItem.getCategoryId()%>"><%=productCategoryItem.getCategoryName()%></aui:option>
		<%
			}
		%>
	</aui:select>
</aui:form>



